package com.ruoyi.lock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 出库单对象 a_outbound
 * 
 * @author ruoyi
 * @date 2024-03-15
 */
public class AOutbound extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出库单ID */
    private Long oId;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String description;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productsName;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 出库数量 */
    @Excel(name = "出库数量")
    private Long quantity;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outboundTime;

    /** 入库ID */
    @Excel(name = "入库ID")
    private Long iId;

    /** 设备所属的部门或组织单位ID */
    private Long deptId;

    public void setoId(Long oId) 
    {
        this.oId = oId;
    }

    public Long getoId() 
    {
        return oId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setProductsName(String productsName) 
    {
        this.productsName = productsName;
    }

    public String getProductsName() 
    {
        return productsName;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setOutboundTime(Date outboundTime) 
    {
        this.outboundTime = outboundTime;
    }

    public Date getOutboundTime() 
    {
        return outboundTime;
    }
    public void setiId(Long iId) 
    {
        this.iId = iId;
    }

    public Long getiId() 
    {
        return iId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("oId", getoId())
            .append("description", getDescription())
            .append("productsName", getProductsName())
            .append("customerId", getCustomerId())
            .append("quantity", getQuantity())
            .append("outboundTime", getOutboundTime())
            .append("iId", getiId())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
